# -*- coding: utf-8 -*-
import logging
import os

from py_language.py_feature.py_scope import outer_function

logger = logging.getLogger(__name__)


def module_call():
    """测试不同文件全局变量调用方式"""
    outer_function()
    global_variable = outer_function.__globals__['global_variable']
    logger.info(f'global_variable={global_variable}')
    pass


if __name__ == '__main__':
    # module_call()

    # instance = Class()
    # instance.method()
    # logger.info(f'qualname:{Class.__qualname__}')
    # logger.info(f'name:{Class.__name__}')


    print(os.path.abspath(os.path.join(__file__, os.path.pardir, os.path.pardir)))
    print(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

    pass
